<?php
/**
 * User: aka
 * Time: 0:18
 */
namespace app\read\controller;

use think\Request;

class Common
{
    public function getToken(Request $request)
    {
        if ($request->param('key') == 'LONG')
        {
            $token = $request->token();
            return json($token);
        }else{
            return json(500);
        }
    }
}